//
// Maths.cpp for  in /home/goldbe_y//cpp/Maths/206observ
//
// Made by yoni goldberg
// Login   <goldbe_y@epitech.net>
//
// Started on  Mon May  2 16:50:15 2011 yoni goldberg
// Last update Tue May 10 16:48:08 2011 yoni goldberg
//

#include <iomanip>
#include <cmath>

#include "convert.hpp"
#include "Maths.hpp"

Maths::Maths(std::vector<int> &_val, std::vector<int> &_coef, int _line)
{
  val = _val;
  coef = _coef;
  line = _line;

  total = 0;
  for (int i = 0; i < line; i++)
    total += coef[i];
}

Maths::~Maths()
{
}

std::vector<float>		Maths::getres()
{
  moy_ari();
  moy_quad();
  moy_geo();
  moy_harm();
  mediane();
  mode();
  variance();
  ecart_type();
  ecart_moyen();
  ecart_median();
  premier_quart();
  troisieme_quart();
  return res;
}

std::vector<float>		Maths::getfreq()
{
  return (freq);
}
